package com.dofast.bt.bean;

import com.dofast.bt.base.BaseApplication;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;
import org.xutils.ex.DbException;

/**
 * Created by Administrator on 2016/12/22 0022.
 * 收藏商品
 */
@Table(name = "enjoy")
public class EnjoyBean {
    @Column(name = "enjoyId",isId = true, autoGen = true,property = "NOT NULL")
    private int enjoyId;
    @Column(name = "goodsId")
    private int goodsId;

    private boolean isCheck;

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public int getEnjoyId() {
        return enjoyId;
    }

    public void setEnjoyId(int enjoyId) {
        this.enjoyId = enjoyId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }
    public GoodsBean getGoods() throws DbException {
        return BaseApplication.getDbManager().findById(GoodsBean.class,goodsId);
    }
}
